package com.Spring.liaojp.entity;

import java.util.List;

/**
 * @author liaojp
 * 订单类
 */
public class Order {
    /**
     * 订单id
     */
    private int id;

    /**
     * 订单需求
     */
    private int need;

    /**
     * 订单总价格
     */
    private int price;

    /**
     * 所需线号
     */
    private List<EmbroideryFloss> embroideryFlosses;

    /**
     * 创建订单的用户
     */
    private User user;

    public Order() {
    }

    public Order(int id, int need, int price) {
        this.id = id;
        this.need = need;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNeed() {
        return need;
    }

    public void setNeed(int need) {
        this.need = need;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public List<EmbroideryFloss> getEmbroideryFlosses() {
        return embroideryFlosses;
    }

    public void setEmbroideryFlosses(List<EmbroideryFloss> embroideryFlosses) {
        this.embroideryFlosses = embroideryFlosses;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
